import "./assets/main.css";

import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "element-plus/dist/index.css"; // 引入样式
import "@/permission";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import AudioPlayer from "vue3-audio-player";
import "vue3-audio-player/dist/style.css";

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.component("AudioPlayer", AudioPlayer);

app.use(router);
app.use(store);
app.mount("#app");
